import { request } from "./com";
export const register = async (username: string, pawd: string) => {
    const response = await request.post('/api/register', {
        username: username,
        password: pawd
    });
    return response
}
export const login = async (username: string, pawd: string) => {
    const response = await request.post('/api/login', {
        username: username,
        password: pawd
    });
    return response
}
export const getPointApi = async (userId: number) => {
    const response = await request.get('/api/user_points', {
        params: {
            user_id: userId
        }
    })
    return response
}